
export default {
    namespaced: true,
    state: {
        isShowCityListWrap: false,
        checkedCityObj: {
            // id: "100000",
            id: "000000", // 按照要武漢求修改全國默認代碼000000
            name: "中国",
            parentId: "0",
            shortName: "全国",
            letter: "C",
            cityCode: "",
            pinyin: "China"
        },
        outChangeid:"000000"
    },
    mutations: {
        isShowCityListWrapUpdate(state: any, data: any) {
            state.isShowCityListWrap = data;
        },
        checkedCityObjUpdate(state: any, data: any) {
            state.checkedCityObj = data;
        },
        outChangeidUpdate(state: any, data: any) {
            state.outChangeid = data;
        },
    },
    actions: {
        isShowCityListWrapEmit(content: any, data: any) {
            content.commit('isShowCityListWrapUpdate', data);
        },
        checkedCityObjEmit(content: any, data: any) {
            content.commit('checkedCityObjUpdate', data);
        },
        outChangeidEmit(content: any, data: any) {
            content.commit('outChangeidUpdate', data);
        },
    },
};


